/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package user;

import java.io.Serializable;


/**
 *
 * @author Dadoo
 */
public abstract class $User implements Serializable  {

    private String userId;
    private String userName;
    private String sex;
    private String email;
    private String birthDay;
    private String telNumber;
    private boolean online;
    private boolean getMessage = false;

    /**
     * Get the value of getMessage
     *
     * @return the value of getMessage
     */
    public boolean isGetMessage() {
        return getMessage;
    }

    /**
     * Set the value of getMessage
     *
     * @param getMessage new value of getMessage
     */
    public void setGetMessage(boolean getMessage) {
        this.getMessage = getMessage;
    }


    /*
     * C'est une table de hachage qui sera la liste des messages "en attente".
     * La reference sera le pseudo de la personne qui a envoyé le message.
     * Il y n'y aura pas vraiment de file d'attente mais c'est efficace pour garder le message quelque part avec son auteur
     */
  

    public $User(){

     }

    public $User(String userId, String userName, String sex, String email, String birthDay, String telNumber, boolean online)  {
        this.userId = userId;
        this.userName = userName;
        this.sex = sex;
        this.email = email;
        this.birthDay = birthDay;
        this.telNumber = telNumber;
        this.online = online;

    }

    /**
     * Get the value of userId
     *
     * @return the value of userId
     */
    public String getUserId() {
        return userId;
    }

    /**
     * Set the value of userId
     *
     * @param userId new value of userId
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * Get the value of userName
     *
     * @return the value of userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * Set the value of userName
     *
     * @param userName new value of userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * Get the value of sex
     *
     * @return the value of sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * Set the value of sex
     *
     * @param sex new value of sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * Get the value of email
     *
     * @return the value of email
     */
    public String getEmail() {
        return email;
    }

    /**
     * Set the value of email
     *
     * @param email new value of email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * Get the value of birthDay
     *
     * @return the value of birthDay
     */
    public String getBirthDay() {
        return birthDay;
    }

    /**
     * Set the value of birthDay
     *
     * @param birthDay new value of birthDay
     */
    public void setBirthDay(String birthDay) {
        this.birthDay = birthDay;
    }

    /**
     * Get the value of telNumber
     *
     * @return the value of telNumber
     */
    public String getTelNumber() {
        return telNumber;
    }

    /**
     * Set the value of telNumber
     *
     * @param telNumber new value of telNumber
     */
    public void setTelNumber(String telNumber) {
        this.telNumber = telNumber;
    }

    /**
     * Get the value of online
     *
     * @return the value of online
     */
    public boolean isOnline() {
        return online;
    }

    /**
     * Set the value of online
     *
     * @param online new value of online
     */
    public void setOnline(boolean online) {
        this.online = online;
    }


   
}
